package com.vimi8.ebb.api.datareport;

import com.vimi8.ebb.configuration.HttpResponseEntity;
import com.vimi8.ebb.param.PlatformStatisticsParam;
import io.swagger.annotations.*;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.List;

/**
 * Created by wangyang on 2017/1/18.
 */

@javax.annotation.Generated(value = "class io.swagger.codegen.languages.SpringCodegen", date = "2016-09-19T10:01:46.405Z")

@Api(value = "ebb", description = "电商控制器")
@RestController
@RequestMapping(value = "electricityBusiness")
public interface ElectricityBusinessFrontApi {

    @ApiOperation(value = "各区县电商平台类型的种类及数量分析", notes = "各区县电商平台类型的种类及数量分析.", response = String.class, tags = {"数据报告",})
    @ApiResponses(value = {
            @ApiResponse(code = 200, message = "成功,返回影响行数", response = HashMap.class),
            @ApiResponse(code = 200, message = "失败,返回消息", response = String.class)})
    @RequestMapping(value = "/statistics/",
            method = RequestMethod.GET)
    HttpResponseEntity<List<HashMap<String, Object>>> electricityBusinessStatistics(
            @ApiParam(value = "地址编码", required = false) @RequestParam(value = "addressCode", required = false) String addressCode,
            @ApiParam(value = "年-月（如：2017-01）", required = false) @RequestParam(value = "yearAndMonth", required = false) String yearAndMonth,
            @ApiParam(value = "年份", required = false) @RequestParam(value = "year", required = false) String year,
            @ApiParam(value = "季度", required = false) @RequestParam(value = "quarter", required = false) String quarter
    );

    @ApiOperation(value = "第三方平台店铺数、交易额、平均交易额分析", notes = "第三方平台店铺数、交易额、平均交易额分析.", response = String.class, tags = {"数据报告",})
    @ApiResponses(value = {
            @ApiResponse(code = 200, message = "成功,返回影响行数", response = HashMap.class),
            @ApiResponse(code = 200, message = "失败,返回消息", response = String.class)})
    @RequestMapping(value = "/statistics/threePlatform",
            method = RequestMethod.GET)
    HttpResponseEntity<HashMap<String, Object>> electricityThreePlatformStatistics(
            @ApiParam(value = "地址编码", required = false) @RequestParam(value = "addressCode", required = false) String addressCode,
            @ApiParam(value = "年-月（如：2017-01）", required = false) @RequestParam(value = "yearAndMonth", required = false) String yearAndMonth,
            @ApiParam(value = "年份", required = false) @RequestParam(value = "year", required = false) String year,
            @ApiParam(value = "季度", required = false) @RequestParam(value = "quarter", required = false) String quarter
    );



    @ApiOperation(value = "各区县电商平台和服务站点的数量分析", notes = "各区县电商平台和服务站点的数量分析.", response = String.class, tags = {"数据报告",})
    @ApiResponses(value = {
            @ApiResponse(code = 200, message = "成功,返回影响行数", response = HashMap.class),
            @ApiResponse(code = 200, message = "失败,返回消息", response = String.class)})
    @RequestMapping(value = "/statistics/platform/",
            method = RequestMethod.GET)
    HttpResponseEntity<List<HashMap<String, Object>>> platformStatistics(PlatformStatisticsParam param);

}
